//
//  Sun.h
//  SujetObserver
//
//  Created by Pierre DUCHENE on 25/01/10.
//  Copyright 2010 Pierre DUCHENE. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SensorProtocol.h"


/*!
    @class       Sun 
    @superclass  NSObject
    @abstract    This class is used to modify randomly the sensor data
*/
@interface Sun : NSObject {
	id<SensorProtocol> sensor;
	BOOL inProgress;
	NSInteger temperature;
}

@property (nonatomic,retain) id<SensorProtocol> sensor;
@property (readonly, getter = isInProgress) BOOL inProgress;
@property (assign) NSInteger temperature;

/*!
    @method     start
    @abstract   Start to change the sensor's data
*/
- (void)start;

/*!
    @method     stop
    @abstract   Stop to change sensor's data
*/
- (void)stop;

@end
